﻿/*
 * name : common.css
 * description : 所有页面公用样式
 * author : 一网美联
 * version : 1.0
*/
body, div, a, ol, ul, li, dl, dd, dt, img, h1, h2, h3, h4, h5, form, fieldset, legend, p, table, th, td, input, select, textarea, button {
    margin: 0;
    padding: 0;
    outline: none;
}

ul, ol, li, dl, dt, dd {
    list-style: none;
}

html, body {
    -webkit-text-size-adjust: none;
}

body {
    font: 14px/1.7 Arial, Helvetica, "Microsoft Yahei", SimHei, SimSun, sans-serif;
    /* 默认14号字，1.7倍行距，英文字体Arial > Helvetica,中文字体：微软雅黑 > 黑体 > 宋体 */
    color: #333;
}

img, a {
    border: none
}

img {
    vertical-align: bottom;
}

a {
    text-decoration: none;
    outline: none;
    transition: color 0.2s ease 0s;
    color: #fff;
}

a:hover {
    transition: color 0.2s ease 0s;
    color: #009143;
}

.close {
    cursor: pointer;
}

.hide {
    display: none;
}

.clear {
    zoom: 1;
}
.clear:after {
    display: block;
    content: "";
    height: 0;
    clear: both;
    overflow: hidden;
    visibility: hidden;
}

/* =============================================================================
   排版规则
   ========================================================================== */
b, strong {
    font-weight: bold;
}

mark {
    background: #ff0;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

/* 重新声明固定宽度字体系列: h5bp.com/j */
pre, code, kbd, samp {
    font-family: monospace, monospace;
    _font-family: 'courier new', monospace;
    font-size: 1em;
}

/* 改善所有浏览器中预先格式化的文本的可读性 */
pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word;
}

small {
    font-size: 85%;
}

/* 放置上标和下标内容，而不影响行高 */
sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

hr {
    display: block;
    clear: both;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/* =============================================================================
   表单
   ========================================================================== */

fieldset {
    border: 0;
}

/* 指示“label”会将焦点移至相关联的表单元素 */
label {
    cursor: pointer;
}

/*
 * 1. 纠正 IE6/7/8/9 中非继承的颜色
 * 2. 纠正 IE6/7 中显示异常的对齐
 */
legend {
    border: 0;
    *margin-left: -7px;
    padding: 0;
}

/*
 * 1. 纠正所有浏览器中非继承的字体大小
 * 2. 删除 FF3/4 S5 Chrome 中的边距
 * 3. 定义在所有浏览器中一致地垂直对齐显示
 */
button, input, select, textarea {
    font-size: 100%;
    margin: 0;
    vertical-align: baseline;
    *vertical-align: middle;
}

/*
 * 1. 将行高定义为正常，以匹配 FF3/4（使用 UA 样式表中的 !important 设置）
 * 2. 纠正 IE6/7 中显示异常的内边距
 */
button, input {
    line-height: normal;
    *overflow: visible;
}

/*
 * 在“table”中重新加入内边距，以避免 IE6/7 中的交迭和空白问题
 */
table button, table input {
    *overflow: auto;
}

/*
 * 1. 显示手形光标，表示可以点击的表单元素
 * 2. 允许 iOS 中可点击的表单元素的样式
 */
button, input[type="button"], input[type="reset"], input[type="submit"] {
    cursor: pointer;
    -webkit-appearance: button;
}

/*
 * 一致的框大小和外观
 */
input[type="checkbox"], input[type="radio"] {
    box-sizing: border-box;
}

input[type="search"] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/*
 * 删除 FF3/4 中的内边距和边框
 */
button::-moz-focus-inner, input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/*
 * 1. 删除 IE6/7/8/9 中的默认垂直滚动条
 * 2. 仅允许垂直调整大小
 */
textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
}

/* 用于表单验证的颜色 */
input:valid, textarea:valid {
}

input:invalid, textarea:invalid {
    background-color: #f0dddd;
}
/*=========================================================
	HTML5 新元素标签
=========================================================*/
article,aside,details,figcaption,figure,footer,header,main,nav,section,summary{
    display:block;
}
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
figure{
    maring:0;
}
audio:not([controls]){
    display:none;
    height:0;
}
svg:not([:root]){
    overflow:hidden;
}
[hidden],template{
    display:none;
}